package com.kdonghwa.dev;

import org.apache.activemq.ActiveMQConnectionFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import javax.jms.*;

public class Executor {

    public static void main(String[] args) throws Exception {

        ApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml");

        MessageQueueConsumer consumer = new MessageQueueConsumer();
        consumer.setupMessageQueueConsumer( (ActiveMQConnectionFactory)ctx.getBean("connectionFactory") );
    }
}
